package com.sdy.hospitalguard.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 陪护关联表
 * </p>
 *
 * @author zzq
 * @since 2020-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class EscortAssociated extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    private Integer id;

    /**
     * 陪护患者ID
     */
    private Integer patientId;

    /**
     * 陪护ID
     */
    private Integer userId;

    /**
     * 拒绝理由/ ----------------废除-----------------
     */
    private String objection;

    /**
     * 关联状态  0:已同意/有效 1:未同意/无效 2:待审批
     */
    private Integer attendantState;

    /**
     * 陪护状态:0:陪护中 1:待陪护 2:完成 3:解除 4:待审批
     */
    private Integer flowState;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date updateTime;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date finishTime;

    /**
     * 患者出院状态：0正常(未出院), 1失效(出院), 2禁用中
     */
    private Integer status;

}
